[#ftl]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>鹿港小镇管理系统</title>
<link rel="stylesheet" type="text/css" href="/operamasks-ui-2.0/css/apusic/om-apusic.css" />
<script type="text/javascript" src="/operamasks-ui-2.0/js/jquery.min.js"></script>
<script type="text/javascript" src="/operamasks-ui-2.0/js/operamasks-ui.min.js"></script>
<script type="text/javascript">
$(function() {
	[#if message??]
		alert("${message}");
	[/#if]

	var panel = $("#panel").omPanel({
		width:'480px',
		height:'270px',
		header: true,
		title:'鹿港小镇管理系统v1.0',
		collapsed: false,
		collapsible: false,
		closable: false
	});
	
	$("#loginButton").omButton({});
	
	$("#loginForm").validate({
		rules : {
			username : "required",
			password : "required"
        },
		messages : {
			username : {
				required : "请输入用户名"
			},
            password : {
				required : "请输入密码",
			}
		}
	});
});
</script>
</head>
<body>
<div style="width:500px;margin:0 atuo;">
	<div id="panel">
		<form action="/login.do" method="post" id="loginForm">
			<label>用户名:</lable><input type="text" name="username" id="username"/><br>
			<label>密码:</lable><input type="password" name="password" id="password"/><br>
			<input type="submit" id="loginButton" value="login"/>
		</form>
	</div>
</div>
</body>
</html>